﻿
{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">编辑采购询价单 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<table>
<tr>
    <td>询价单编号：</td>
    <td>{$vo.mano} <span class="offset1">客户询单号：</span>
      <a href="__APP__/Inquiry/edit/id/{$vo.inquiry_id}">{$vo.inquiry_id|getModelName='Inquiry','mano'} </a> </td>
</tr>

<tr>
	<td>产品</td>
	<td>{$vo.product_id|getModelName='Product'}</td>
</tr>
<tr>
    <td>数量：</td>
    <td><input type="text" name="number" value="{$vo.number}" class="small">
    </td>
</tr>
<tr>
    <td>要求质量要求(规格)：</td>
    <td><input type="text" name="specification" value="{$vo.specification}" class="input-xxlarge"></td>
</tr>
<tr>
    <td>要求要求交货期：</td>
    <td><input type="text" class="span2" name="delivery_date" value="{$vo.delivery_date|toDate="Y-m-d"}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"></td>
</tr>

<tr>
	<td class="tRight">备注：</td>
        <td class="tLeft"><textarea class="span12" name="remark" rows="3">{$vo.remark}</textarea>
        </td>
</tr>
<tr>
  <td>询价时间：</td>
  <td class="tLeft"><input type="text" class="span2" name="create_time" value="{$vo.create_time|toDate}" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"> 
        </td>
</tr>

<tr>
  <td colspan=2 >
     
  </td>
</tr>
<tr>
    <td class="tRight">询价单状态：</td>
    <td class="tLeft">
        {:configList(C('askStatus'),$vo['status'])}
        <!--
        <select name="status">
       <volist name="askstatus" id="bs">
            <option value="{$key}" <eq name="vo.status" value="$key">selected="selected"</eq> >{$bs}</option>
        </volist>
        </select> -->
        </td>
</tr>
<tr>
    <td class="tRight" >经办人：</td>
    <td class="tLeft" >{:modList('User')}</td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</table>
</form>
<h3 class="heading">供应商报价</h3>
<button class="btn btn-primary" onclick="addMore({$vo.id})"/><i class="icon-plus icon-white"></i> 新增</button>
<table class="table table-bordered table-striped">
      <tr>
        <th>供应商</th><th>规格</th><th>报价</th><th>更新询价</th>
      </tr>
      <tr>
        <td>xxxx</td>
        <td>78%</td>
        <td>
          5KG：250元/KG（开票/不开票，现货） 10KG：250元/KG（开票/不开票，14天） 25KG:250元/KG（开票/不开票，30天）
        </td>
        <td>更新询价</td>
      </tr>
      <tr>
        
        <td>YYYYY</td>
        <td>75%</td>
        <td>
          5KG：250元/KG（开票/不开票，现货） 10KG：250元/KG（开票/不开票，14天） 25KG:250元/KG（开票/不开票，30天）
        </td>
        
        <td>更新询价</td>
      </tr>
    </table> 
</div>
</div>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
<script type="text/javascript">
   function addMore(id){
       location.href ="__APP__/Ask_supplier_detail/add/id/"+id;

        }
</script>